package com.billionsfinance.hessian.service.impl;

import com.billionsfinance.hessian.annotation.EnableHessianServer;
import com.billionsfinance.hessian.service.AddService;
import org.springframework.stereotype.Service;

/**
 * @fileName: AddServiceImpl.java
 * @author: WeiHui.Zhang
 * @date: 2016-10-10  18:45
 * @version: v1.0.0
 */
@Service
@EnableHessianServer
public class AddServiceImpl implements AddService {

	@Override
	public int add(int a, int b) {
		System.out.println("add(int a, int b) is invoked");
		return a + b;
	}

	@Override
	public long add(long a, long b) {
		System.out.println("add(long a, long b) is invoked");
		return a + b;
	}
}
